package com.yc.think.brain;

/**
 * author: yc
 * description: ${description}
 * date: 2021/7/16 16:33
 */
public class Score {
    public int mark(String bs) {
        int len = bs.length();
        if (len <= 8) {
            return f1(len);
        } else {
            return f2(len);
        }
    }

    //0 ~ 8
    public int f1(int len) {
        return (10/8)*len;
    }

    //8 ~
    public int f2(int len) {
        return 80/len;
    }
}
